package demo5;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String s =  scanner.next();
        String result = String.valueOf(s.charAt(0));
        for (int i = 0; i < s.length(); i++) {
            if (s.charAt(i) == ' '){
                result += s.charAt(i);
            }
        }
        System.out.println(result.toUpperCase());
    }
}
